﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ESRI.ArcGIS.Carto;
using ESRI.ArcGIS.ArcMapUI;

namespace ODM_Code.Code
{
    public class AddOptFuelsDataCode
    {
        private string dbfPath = "C:\\magfire\\" + ConfigSettings.ReadSetting("analysisArea");
        private string inputPath = "C:\\magfire\\" + ConfigSettings.ReadSetting("analysisArea") + "\\input";

        private IMap map;
        private IActiveView view;

        private Boolean preSelectBool = false;

        private rUtils ru;

        public AddOptFuelsDataCode(IMxDocument pMxDoc)
        {
            ru = new rUtils();
            IMxDocument doc = pMxDoc;
            map = doc.FocusMap;
            view = doc.ActiveView;
            map.SpatialReference = ru.GetAlbersProjection();

            preSelectBool = true;
        }

        public AddOptFuelsDataCode(IMxDocument pMxDoc, string preSelectAlternative)
        {
            ru = new ODM_Code.rUtils();
            IMxDocument doc = pMxDoc;
            map = doc.FocusMap;
            view = doc.ActiveView;

            map.SpatialReference = ru.GetAlbersProjection();

            preSelectBool = true;
        }
    }
}
